import dsl.rulesengine.RulesEngine
import usage.trafficlight.TrafficLight
import usage.trafficlight.TrafficLightHandler

def rulesEngine = new RulesEngine(new TrafficLightHandler())
def trafficLight = new TrafficLight(colour:'red')

while(true) {
    rulesEngine.execute("ManageLight.groovy", [trafficLight: trafficLight])
}


